import {defineStore} from "pinia";
import {getHouseDetail} from "@/services";

const useDetail = defineStore('detail', {
   state:() => ({
      detailInfos:{}
   }),
   actions: {
      async fetchHouseDetail(id) {
         const res = await getHouseDetail(id)
         this.detailInfos = res.data
         return res.data
      }
   }
})

export default useDetail